import { createBrowserRouter, RouterProvider } from 'react-router-dom';
import { GithubCallback } from './GithubCallback';
import { Home } from './Home';
import App from './App';

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
  },
  {
    path: '/home',
    element: <Home />,
  },
  {
    path: 'gitee/callback',
    element: <GithubCallback />,
  },
]);

export function Routes() {
  return <RouterProvider router={router} />;
}
